Repository navigation
feat(fwss): set the PDP rate after removals on FilecoinPayV2 in nextProvingPeriod - #683
Draft
CodeWarriorr wants to merge 1 commit into
Draft
CodeWarriorr wants to merge 1 commit into
CodeWarriorr wants to merge 1 commit into
Conversation
…rovingPeriod nextProvingPeriod always updated the rate on FilecoinPayV1, so a v2 data set with a scheduled removal reverted and could not advance proving. v2 data sets now set the rate through LibRailsV2.setPdpRate with no fee. An unchanged rate skips the script, since setRate settles first and reverts for a payer who is behind, which FilecoinPayV1 allows.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a scheduled removal,
nextProvingPeriodon a v2 data set still updated the rate on FilecoinPayV1 and reverted, so the SP couldn't advance proving.Part of #669. Stacked on #681, so only the last commit is new.
What's changed
LibRailsV2.setPdpRatewith no fee, so the lock goes down with the ratepiecesAddedrepriced it, or rounding), the script is skipped. V2setRatealways settles first and reverts withBehindfor a payer who ran out, while FilecoinPayV1 lets an unchanged rate throughsettleRailnow runs insidenextProvingPeriodafter the deadline moved, which is fine since it only readsprovenPeriodsand the activation epochA real rate drop for a payer who is behind still reverts with
Behind, same as FilecoinPayV1 refusing a rate change while the lockup isn't settled.No ABI or storage change.